home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / GNU / emacs.inst / emacs19.idb / usr / gnu / lib / emacs / 19.22 / PROBLEMS.z / PROBLEMS
Encoding:
Text File  |  1994-08-02  |  32.9 KB  |  811 lines

  1. This file describes various problems that have been encountered
  2. in compiling, installing and running GNU Emacs.
  3.  
  4. * You configure Emacs to use a directory such as /usr/local/sun3.lib/emacs
  5. and the directory name gets mangled in the process of building Emacs.
  6.  
  7. This is because building Emacs involves passing a makefile through the
  8. C preprocessor.  The directory names that you specified go through
  9. that process, and if they happen to use any predefined macro names,
  10. those macro names get substituted.  For example, if you are on a Sun
  11. 3, the name `sun3' is a predefined macro.
  12.  
  13. This is an Emacs bug, and will be fixed; but it was too risky to fix
  14. for 19.21.  For now, you must use different names for those
  15. directories (perhaps via symbolic links).
  16.  
  17. * You "lose characters" after typing Compose Character key.
  18.  
  19. This is because the Compose Character key is defined as the keysym
  20. Multi_key, and Emacs (seeing that) does the proper X11
  21. character-composition processing.  If you don't want your Compose key
  22. to do that, you can redefine it with xmodmap.
  23.  
  24. For example, here's one way to turn it into a Meta key:
  25.  
  26.     xmodmap -e "keysym Multi_key = Meta_L"
  27.  
  28. If all users at your site of a particular keyboard prefer Meta to
  29. Compose, you can make the remapping happen automatically by adding the
  30. xmodmap command to the xdm setup script for that display.
  31.  
  32. * Watch out for .emacs files and EMACSLOADPATH environment vars
  33.  
  34. These control the actions of Emacs.
  35. ~/.emacs is your Emacs init file.
  36. EMACSLOADPATH overrides which directories the function
  37. "load" will search.
  38.  
  39. If you observe strange problems, check for these and get rid
  40. of them, then try again.
  41.  
  42. * After running emacs once, subsequent invocations crash.
  43.  
  44. Some versions of SVR4 have a serious bug in the implementation of the
  45. mmap () system call in the kernel; this causes emacs to run correctly
  46. the first time, and then crash when run a second time.
  47.  
  48. Contact your vendor and ask for the mmap bug fix; in the mean time,
  49. you may be able to work around the problem by adding a line to your
  50. operating system description file (whose name is reported by the
  51. configure script) that reads:
  52. #define SYSTEM_MALLOC
  53. This makes Emacs use memory less efficiently, but seems to work around
  54. the kernel bug.
  55.  
  56. * Inability to send an Alt-modified key, when Emacs is communicating
  57. directly with an X server.
  58.  
  59. If you have tried to bind an Alt-modified key as a command, and it
  60. does not work to type the command, the first thing you should check is
  61. whether the key is getting through to Emacs.  To do this, type C-h c
  62. followed by the Alt-modified key.  C-h c should say what kind of event
  63. it read.  If it says it read an Alt-modified key, then make sure you
  64. have made the key binding correctly.
  65.  
  66. If C-h c reports an event that doesn't have the Alt modifier, it may
  67. be because your X server has no key for the Alt modifier.  The X
  68. server that comes from MIT does not set up the Alt modifier by
  69. default.
  70.  
  71. If your keyboard has keys named Alt, you can enable them as follows:
  72.  
  73.     xmodmap -e 'add mod2 = Alt_L'
  74.     xmodmap -e 'add mod2 = Alt_R'
  75.  
  76. If the keyboard has just one key named Alt, then only one of those
  77. commands is needed.  The modifier `mod2' is a reasonable choice if you
  78. are using an unmodified MIT version of X.  Otherwise, choose any
  79. modifier bit not otherwise used.
  80.  
  81. If your keyboard does not have keys named Alt, you can use some other
  82. keys.  Use the keysym command in xmodmap to turn a function key (or
  83. some other 'spare' key) into Alt_L or into Alt_R, and then use the
  84. commands show above to make them modifier keys.
  85.  
  86. Note that if you have Alt keys but no Meta keys, Emacs translates Alt
  87. into Meta.  This is because of the great importance of Meta in Emacs.
  88.  
  89. * `Pid xxx killed due to text modification or page I/O error'
  90.  
  91. On HP/UX, you can get that error when the Emacs executable is on an NFS
  92. file system.  HP/UX responds this way if it tries to swap in a page and
  93. does not get a response from the server within a timeout whose default
  94. value is just ten seconds.
  95.  
  96. If this happens to you, extend the timeout period.
  97.  
  98. * `expand-file-name' fails to work on any but the machine you dumped Emacs on.
  99.  
  100. On Ultrix, if you use any of the functions which look up information
  101. in the passwd database before dumping Emacs (say, by using
  102. expand-file-name in site-init.el), then those functions will not work
  103. in the dumped Emacs on any host but the one Emacs was dumped on.
  104.  
  105. The solution?  Don't use expand-file-name in site-init.el, or in
  106. anything it loads.  Yuck - some solution.
  107.  
  108. I'm not sure why this happens; if you can find out exactly what is
  109. going on, and perhaps find a fix or a workaround, please let us know.
  110. Perhaps the YP functions cache some information, the cache is included
  111. in the dumped Emacs, and is then inaccurate on any other host.
  112.  
  113. * On some variants of SVR4, Emacs does not work at all with X.
  114.  
  115. Try defining BROKEN_FIONREAD in your config.h file.  If this solves
  116. the problem, please send a bug report to tell us this is needed; be
  117. sure to say exactly what type of machine and system you are using.
  118.  
  119. * Linking says that the functions insque and remque are undefined.
  120.  
  121. Change oldXMenu/Makefile by adding insque.o to the variable OBJS.
  122.  
  123. * Emacs fails to understand most Internet host names, even though
  124. the names work properly with other programs on the same system.
  125. * Emacs won't work with X-windows if the value of DISPLAY is HOSTNAME:0.
  126. * GNUs can't make contact with the specified host for nntp.
  127.  
  128. This typically happens on Suns and other systems that use shared
  129. libraries.  The cause is that the site has installed a version of the
  130. shared library which uses a name server--but has not installed a
  131. similar version of the unshared library which Emacs uses.
  132.  
  133. The result is that most programs, using the shared library, work with
  134. the nameserver, but Emacs does not.
  135.  
  136. The fix is to install an unshared library that corresponds to what you
  137. installed in the shared library, and then relink Emacs.
  138.  
  139. On SunOS 4.1, simply define HAVE_RES_INIT.
  140.  
  141. If you have already installed the name resolver in the file libresolv.a,
  142. then you need to compile Emacs to use that library.  The easiest way to
  143. do this is to add to config.h a definition of LIBS_SYSTEM, LIBS_MACHINE
  144. or LIB_STANDARD which uses -lresolv.  Watch out!  If you redefine a macro
  145. that is already in use in your configuration to supply some other libraries,
  146. be careful not to lose the others.
  147.  
  148. Thus, you could start by adding this to config.h:
  149.  
  150. #define LIBS_SYSTEM -lresolv
  151.  
  152. Then if this gives you an error for redefining a macro, and you see that
  153. the s- file defines LIBS_SYSTEM as -lfoo -lbar, you could change config.h
  154. again to say this:
  155.  
  156. #define LIBS_SYSTEM -lresolv -lfoo -lbar
  157.  
  158. * On a Sun running SunOS 4.1.1, you get this error message from GNU ld:
  159.  
  160.     /lib/libc.a(_Q_sub.o): Undefined symbol __Q_get_rp_rd referenced from text segment 
  161.  
  162. The problem is in the Sun shared C library, not in GNU ld.
  163.  
  164. The solution is to install Patch-ID# 100267-03 from Sun.
  165.  
  166. * Self documentation messages are garbled.
  167.  
  168. This means that the file `etc/DOC-...' doesn't properly correspond
  169. with the Emacs executable.  Redumping Emacs and then installing the
  170. corresponding pair of files should fix the problem.
  171.  
  172. * Trouble using ptys on AIX.
  173.  
  174. People often install the pty devices on AIX incorrectly.
  175. Use `smit pty' to reinstall them properly.
  176.  
  177. * Shell mode on HP/UX gives the message, "`tty`: Ambiguous".
  178.  
  179. christos@theory.tn.cornell.edu says:
  180.  
  181. The problem is that in your .cshrc you have something that tries to
  182. execute `tty`. If you are not running the shell on a real tty then 
  183. tty will print "not a tty". Csh expects one word in some places, 
  184. but tty is giving it back 3.
  185.  
  186. The solution is to add a pair of quotes around `tty` to make it a single
  187. word: 
  188.  
  189. if (`tty` == "/dev/console") 
  190.  
  191. should be changed to:
  192.  
  193. if ("`tty`" == "/dev/console") 
  194.  
  195. Even better, move things that set up terminal sections out of .cshrc
  196. and into .login.
  197.  
  198. * Using X Windows, control-shift-leftbutton makes Emacs hang.
  199.  
  200. Use the shell command `xset bc' to make the old X Menu package work.
  201.  
  202. * Emacs running under X Windows does not handle mouse clicks.
  203. * `emacs -geometry 80x20' finds a file named `80x20'.
  204.  
  205. One cause of such problems is having (setq term-file-prefix nil) in
  206. your .emacs file.  Another cause is a bad value of EMACSLOADPATH in
  207. the environment.
  208.  
  209. * Emacs gets error message from linker on Sun.
  210.  
  211. If the error message says that a symbol such as `f68881_used' or
  212. `ffpa_used' or `start_float' is undefined, this probably indicates
  213. that you have compiled some libraries, such as the X libraries, 
  214. with a floating point option other than the default.
  215.  
  216. It's not terribly hard to make this work with small changes in
  217. crt0.c together with linking with Fcrt1.o, Wcrt1.o or Mcrt1.o.
  218. However, the easiest approach is to build Xlib with the default
  219. floating point option: -fsoft.
  220.  
  221. * Emacs fails to get default settings from X Windows server.
  222.  
  223. The X library in X11R4 has a bug; it interchanges the 2nd and 3rd
  224. arguments to XGetDefaults.  Define the macro XBACKWARDS in config.h to
  225. tell Emacs to compensate for this.
  226.  
  227. I don't believe there is any way Emacs can determine for itself
  228. whether this problem is present on a given system.
  229.  
  230. * Keyboard input gets confused after a beep when using a DECserver
  231.   as a concentrator.
  232.  
  233. This problem seems to be a matter of configuring the DECserver to use
  234. 7 bit characters rather than 8 bit characters.
  235.  
  236. * M-x shell persistently reports "Process shell exited abnormally with code 1".
  237.  
  238. This happened on Suns as a result of what is said to be a bug in Sunos
  239. version 4.0.x.  The only fix was to reboot the machine. 
  240.  
  241. * Programs running under terminal emulator do not recognize `emacs'
  242.   terminal type.
  243.  
  244. The cause of this is a shell startup file that sets the TERMCAP
  245. environment variable.  The terminal emulator uses that variable to
  246. provide the information on the special terminal type that Emacs
  247. emulates.
  248.  
  249. Rewrite your shell startup file so that it does not change TERMCAP
  250. in such a case.  You could use the following conditional which sets
  251. it only if it is undefined.
  252.  
  253.     if ( ! ${?TERMCAP} ) setenv TERMCAP ~/my-termcap-file
  254.  
  255. Or you could set TERMCAP only when you set TERM--which should not
  256. happen in a non-login shell.
  257.  
  258. * X Windows doesn't work if DISPLAY uses a hostname.
  259.  
  260. People have reported kernel bugs in certain systems that cause Emacs
  261. not to work with X Windows if DISPLAY is set using a host name.  But
  262. the problem does not occur if DISPLAY is set to `unix:0.0'.  I think
  263. the bug has to do with SIGIO or FIONREAD.
  264.  
  265. You may be able to compensate for the bug by doing (set-input-mode nil nil).
  266. However, that has the disadvantage of turning off interrupts, so that
  267. you are unable to quit out of a Lisp program by typing C-g.
  268.  
  269. The easy way to do this is to put 
  270.  
  271.   (setq x-sigio-bug t)
  272.  
  273. in your site-init.el file.
  274.  
  275. * Problem with remote X server on Suns.
  276.  
  277. On a Sun, running Emacs on one machine with the X server on another
  278. may not work if you have used the unshared system libraries.  This
  279. is because the unshared libraries fail to use YP for host name lookup.
  280. As a result, the host name you specify may not be recognized.
  281.  
  282. * Shell mode ignores interrupts on Apollo Domain
  283.  
  284. You may find that M-x shell prints the following message:
  285.  
  286.    Warning: no access to tty; thus no job control in this shell...
  287.  
  288. This can happen if there are not enough ptys on your system.
  289. Here is how to make more of them.
  290.  
  291.     % cd /dev
  292.     % ls pty*
  293.     # shows how many pty's you have. I had 8, named pty0 to pty7)
  294.     % /etc/crpty 8
  295.     # creates eight new pty's
  296.  
  297. * Fatal signal in the command  temacs -l loadup inc dump
  298.  
  299. This command is the final stage of building Emacs.  It is run by the
  300. Makefile in the src subdirectory, or by build.com on VMS.
  301.  
  302. It has been known to get fatal errors due to insufficient swapping
  303. space available on the machine.
  304.  
  305. On 68000's, it has also happened because of bugs in the
  306. subroutine `alloca'.  Verify that `alloca' works right, even
  307. for large blocks (many pages).
  308.  
  309. * test-distrib says that the distribution has been clobbered
  310. * or, temacs prints "Command key out of range 0-127"
  311. * or, temacs runs and dumps xemacs, but xemacs totally fails to work.
  312. * or, temacs gets errors dumping xemacs
  313.  
  314. This can be because the .elc files have been garbled.  Do not be
  315. fooled by the fact that most of a .elc file is text: these are
  316. binary files and can contain all 256 byte values.
  317.  
  318. In particular `shar' cannot be used for transmitting GNU Emacs.
  319. It typically truncates "lines".  What appear to be "lines" in
  320. a binary file can of course be of any length.  Even once `shar'
  321. itself is made to work correctly, `sh' discards null characters
  322. when unpacking the shell archive.
  323.  
  324. I have also seen character \177 changed into \377.  I do not know
  325. what transfer means caused this problem.  Various network
  326. file transfer programs are suspected of clobbering the high bit.
  327.  
  328. If you have a copy of Emacs that has been damaged in its
  329. nonprinting characters, you can fix them:
  330.  
  331.  1) Record the names of all the .elc files.
  332.  2) Delete all the .elc files.
  333.  3) Recompile alloc.c with a value of PURESIZE twice as large.
  334.      You might as well save the old alloc.o.
  335.  4) Remake xemacs.  It should work now.
  336.  5) Running xemacs, do Meta-x byte-compile-file repeatedly
  337.   to recreate all the .elc files that used to exist.
  338.   You may need to increase the value of the variable
  339.   max-lisp-eval-depth to succeed in running the compiler interpreted
  340.   on certain .el files.  400 was sufficient as of last report.
  341.  6) Reinstall the old alloc.o (undoing changes to alloc.c if any)
  342.   and remake temacs.
  343.  7) Remake xemacs.  It should work now, with valid .elc files.
  344.  
  345. * temacs prints "Pure Lisp storage exhausted"
  346.  
  347. This means that the Lisp code loaded from the .elc and .el
  348. files during  temacs -l loadup inc dump  took up more
  349. space than was allocated.
  350.  
  351. This could be caused by
  352.  1) adding code to the preloaded Lisp files
  353.  2) adding more preloaded files in loadup.el
  354.  3) having a site-init.el or site-load.el which loads files.
  355.    Note that ANY site-init.el or site-load.el is nonstandard;
  356.    if you have received Emacs from some other site
  357.    and it contains a site-init.el or site-load.el file, consider
  358.    deleting that file.
  359.  4) getting the wrong .el or .elc files
  360.    (not from the directory you expected).
  361.  5) deleting some .elc files that are supposed to exist.
  362.    This would cause the source files (.el files) to be
  363.    loaded instead.  They take up more room, so you lose.
  364.  6) a bug in the Emacs distribution which underestimates
  365.    the space required.
  366.  
  367. If the need for more space is legitimate, change the definition
  368. of PURESIZE in puresize.h.
  369.  
  370. But in some of the cases listed above, this problem is a consequence
  371. of something else that is wrong.  Be sure to check and fix the real
  372. problem.
  373.  
  374. * Changes made to .el files do not take effect.
  375.  
  376. You may have forgotten to recompile them into .elc files.
  377. Then the old .elc files will be loaded, and your changes
  378. will not be seen.  To fix this, do M-x byte-recompile-directory
  379. and specify the directory that contains the Lisp files.
  380.  
  381. Emacs should print a warning when loading a .elc file which is older
  382. than the corresponding .el file.
  383.  
  384. * The dumped Emacs (xemacs) crashes when run, trying to write pure data.
  385.  
  386. Two causes have been seen for such problems.
  387.  
  388. 1) On a system where getpagesize is not a system call, it is defined
  389. as a macro.  If the definition (in both unexec.c and malloc.c) is wrong,
  390. it can cause problems like this.  You might be able to find the correct
  391. value in the man page for a.out (5).
  392.  
  393. 2) Some systems allocate variables declared static among the
  394. initialized variables.  Emacs makes all initialized variables in most
  395. of its files pure after dumping, but the variables declared static and
  396. not initialized are not supposed to be pure.  On these systems you
  397. may need to add "#define static" to the m- or the s- file.
  398.  
  399. * Compilation errors on VMS.
  400.  
  401. You will get warnings when compiling on VMS because there are
  402. variable names longer than 32 (or whatever it is) characters.
  403. This is not an error.  Ignore it.
  404.  
  405. VAX C does not support #if defined(foo).  Uses of this construct
  406. were removed, but some may have crept back in.  They must be rewritten.
  407.  
  408. There is a bug in the C compiler which fails to sign extend characters
  409. in conditional expressions.  The bug is:
  410.     char c = -1, d = 1;
  411.     int i;
  412.  
  413.     i = d ? c : d;
  414. The result is i == 255;  the fix is to typecast the char in the
  415. conditional expression as an (int).  Known occurrences of such
  416. constructs in Emacs have been fixed.
  417.  
  418. * rmail gets error getting new mail
  419.  
  420. rmail gets new mail from /usr/spool/mail/$USER using a program
  421. called `movemail'.  This program interlocks with /bin/mail using
  422. the protocol defined by /bin/mail.
  423.  
  424. There are two different protocols in general use.  One of them uses
  425. the `flock' system call.  The other involves creating a lock file;
  426. `movemail' must be able to write in /usr/spool/mail in order to do
  427. this.  You control which one is used by defining, or not defining,
  428. the macro MAIL_USE_FLOCK in config.h or the m- or s- file it includes.
  429. IF YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR
  430. SYSTEM, YOU CAN LOSE MAIL!
  431.  
  432. If your system uses the lock file protocol, and fascist restrictions
  433. prevent ordinary users from writing the lock files in /usr/spool/mail,
  434. you may need to make `movemail' setgid to a suitable group such as
  435. `mail'.  You can use these commands (as root):
  436.  
  437.     chgrp mail movemail
  438.     chmod 2755 movemail
  439.  
  440. * Emacs spontaneously displays "I-search: " at the bottom of the screen.
  441.  
  442. This means that Control-S/Control-Q "flow control" is being used.
  443. C-s/C-q flow control is bad for Emacs editors because it takes away
  444. C-s and C-q as user commands.  Since editors do not output long streams
  445. of text without user commands, there is no need for a user-issuable
  446. "stop output" command in an editor; therefore, a properly designed
  447. flow control mechanism would transmit all possible input characters
  448. without interference.  Designing such a mechanism is easy, for a person
  449. with at least half a brain.
  450.  
  451. There are three possible reasons why flow control could be taking place:
  452.  
  453.   1) Terminal has not been told to disable flow control
  454.   2) Insufficient padding for the terminal in use
  455.   3) Some sort of terminal concentrator or line switch is responsible
  456.  
  457. First of all, many terminals have a set-up mode which controls
  458. whether they generate flow control characters.  This must be
  459. set to "no flow control" in order for Emacs to work.  Sometimes
  460. there is an escape sequence that the computer can send to turn
  461. flow control off and on.  If so, perhaps the termcap `ti' string
  462. should turn flow control off, and the `te' string should turn it on.
  463.  
  464. Once the terminal has been told "no flow control", you may find it
  465. needs more padding.  The amount of padding Emacs sends is controlled
  466. by the termcap entry for the terminal in use, and by the output baud
  467. rate as known by the kernel.  The shell command `stty' will print
  468. your output baud rate; `stty' with suitable arguments will set it if
  469. it is wrong.  Setting to a higher speed causes increased padding.  If
  470. the results are wrong for the correct speed, there is probably a
  471. problem in the termcap entry.  You must speak to a local Unix wizard
  472. to fix this.  Perhaps you are just using the wrong terminal type.
  473.  
  474. For terminals that lack a "no flow control" mode, sometimes just
  475. giving lots of padding will prevent actual generation of flow control
  476. codes.  You might as well try it.
  477.  
  478. If you are really unlucky, your terminal is connected to the computer
  479. through a concentrator which sends flow control to the computer, or it
  480. insists on sending flow control itself no matter how much padding you
  481. give it.  You are screwed!  You should replace the terminal or
  482. concentrator with a properly designed one.  In the mean time,
  483. some drastic measures can make Emacs semi-work.
  484.  
  485. One drastic measure to ignore C-s and C-q, while sending enough
  486. padding that the terminal will not really lose any output.  To make
  487. such an adjustment, you need only invoke the function
  488. enable-flow-control-on with a list of terminal types in your own
  489. .emacs file.  As arguments, give it the names of one or more terminal
  490. types you use which require flow control adjustments.
  491. Here's an example:
  492.  
  493. (enable-flow-control-on "vt200" "vt300" "vt101" "vt131")
  494.  
  495. If the situation is only temporary and you don't expect it to
  496. be the case the next time you use emacs (e.g. you're visiting
  497. someplace where C-s and C-q have taken over, but expect to
  498. be back to a safe part of the world in a few hours), you can
  499. just type M-x enable-flow-control at the beginning of your
  500. emacs session.
  501.  
  502. An even more drastic measure is to make Emacs use flow control.  To do
  503. this, evaluate the Lisp expression (set-input-mode nil t META).  (The
  504. argument META should be t if you have a meta key, and nil otherwise.)
  505.  
  506. Emacs will then interpret C-s and C-q as flow control commands.  (More
  507. precisely, it will allow the kernel to do so as it usually does.)  You
  508. will lose the ability to use them for Emacs commands.  Also, as a
  509. consequence of using CBREAK mode, the terminal's Meta-key, if any,
  510. will not work, and C-g will be liable to cause a loss of output which
  511. will produce garbage on the screen.  (These problems apply to 4.2BSD;
  512. they may not happen in 4.3 or VMS, and I don't know what would happen
  513. in sysV.)  You can use keyboard-translate-table, as shown above,
  514. to map two other input characters (such as C-^ and C-\) into C-s and
  515. C-q, so that you can still search and quote.
  516.  
  517. I have no intention of ever redesigning the Emacs command set for
  518. the assumption that terminals use C-s/C-q flow control.  This
  519. flow control technique is a bad design, and terminals that need
  520. it are bad merchandise and should not be purchased.  If you can
  521. get some use out of GNU Emacs on inferior terminals, I am glad,
  522. but I will not make Emacs worse for properly designed systems
  523. for the sake of inferior systems.
  524.  
  525. * Control-S and Control-Q commands are ignored completely.
  526.  
  527. For some reason, your system is using brain-damaged C-s/C-q flow
  528. control despite Emacs's attempts to turn it off.  Perhaps your
  529. terminal is connected to the computer through a concentrator
  530. that wants to use flow control.
  531.  
  532. You should first try to tell the concentrator not to use flow control.
  533. If you succeed in this, try making the terminal work without
  534. flow control, as described in the preceding section.
  535.  
  536. If that line of approach is not successful, map some other characters
  537. into C-s and C-q using keyboard-translate-table.  The example above
  538. shows how to do this with C-^ and C-\.
  539.  
  540. * Control-S and Control-Q commands are ignored completely on a net connection.
  541.  
  542. Some versions of rlogin (and possibly telnet) do not pass flow
  543. control characters to the remote system to which they connect.
  544. On such systems, emacs on the remote system cannot disable flow
  545. control on the local system.
  546.  
  547. One way to cure this is to disable flow control on the local host
  548. (the one running rlogin, not the one running rlogind) using the
  549. stty command, before starting the rlogin process.  On many systems,
  550. "stty start u stop u" will do this.
  551.  
  552. Some versions of tcsh will prevent even this from working.  One way
  553. around this is to start another shell before starting rlogin, and
  554. issue the stty command to disable flow control from that shell.
  555.  
  556. If none of these methods work, the best solution is to type
  557. M-x enable-flow-control at the beginning of your emacs session, or
  558. if you expect the problem to continue, add a line such as the
  559. following to your .emacs (on the host running rlogind):
  560.  
  561. (enable-flow-control-on "vt200" "vt300" "vt101" "vt131")
  562.  
  563. See the entry about spontaneous display of I-search (above) for more
  564. info.
  565.  
  566. * Screen is updated wrong, but only on one kind of terminal.
  567.  
  568. This could mean that the termcap entry you are using for that
  569. terminal is wrong, or it could mean that Emacs has a bug handing
  570. the combination of features specified for that terminal.
  571.  
  572. The first step in tracking this down is to record what characters
  573. Emacs is sending to the terminal.  Execute the Lisp expression
  574. (open-termscript "./emacs-script") to make Emacs write all
  575. terminal output into the file ~/emacs-script as well; then do
  576. what makes the screen update wrong, and look at the file
  577. and decode the characters using the manual for the terminal.
  578. There are several possibilities:
  579.  
  580. 1) The characters sent are correct, according to the terminal manual.
  581.  
  582. In this case, there is no obvious bug in Emacs, and most likely you
  583. need more padding, or possibly the terminal manual is wrong.
  584.  
  585. 2) The characters sent are incorrect, due to an obscure aspect
  586.  of the terminal behavior not described in an obvious way
  587.  by termcap.
  588.  
  589. This case is hard.  It will be necessary to think of a way for
  590. Emacs to distinguish between terminals with this kind of behavior
  591. and other terminals that behave subtly differently but are
  592. classified the same by termcap; or else find an algorithm for
  593. Emacs to use that avoids the difference.  Such changes must be
  594. tested on many kinds of terminals.
  595.  
  596. 3) The termcap entry is wrong.
  597.  
  598. See the file etc/TERMS for information on changes
  599. that are known to be needed in commonly used termcap entries
  600. for certain terminals.
  601.  
  602. 4) The characters sent are incorrect, and clearly cannot be
  603.  right for any terminal with the termcap entry you were using.
  604.  
  605. This is unambiguously an Emacs bug, and can probably be fixed
  606. in termcap.c, tparam.c, term.c, scroll.c, cm.c or dispnew.c.
  607.  
  608. * Output from Control-V is slow.
  609.  
  610. On many bit-map terminals, scrolling operations are fairly slow.
  611. Often the termcap entry for the type of terminal in use fails
  612. to inform Emacs of this.  The two lines at the bottom of the screen
  613. before a Control-V command are supposed to appear at the top after
  614. the Control-V command.  If Emacs thinks scrolling the lines is fast,
  615. it will scroll them to the top of the screen.
  616.  
  617. If scrolling is slow but Emacs thinks it is fast, the usual reason is
  618. that the termcap entry for the terminal you are using does not
  619. specify any padding time for the `al' and `dl' strings.  Emacs
  620. concludes that these operations take only as much time as it takes to
  621. send the commands at whatever line speed you are using.  You must
  622. fix the termcap entry to specify, for the `al' and `dl', as much
  623. time as the operations really take.
  624.  
  625. Currently Emacs thinks in terms of serial lines which send characters
  626. at a fixed rate, so that any operation which takes time for the
  627. terminal to execute must also be padded.  With bit-map terminals
  628. operated across networks, often the network provides some sort of
  629. flow control so that padding is never needed no matter how slow
  630. an operation is.  You must still specify a padding time if you want
  631. Emacs to realize that the operation takes a long time.  This will
  632. cause padding characters to be sent unnecessarily, but they do
  633. not really cost much.  They will be transmitted while the scrolling
  634. is happening and then discarded quickly by the terminal.
  635.  
  636. Most bit-map terminals provide commands for inserting or deleting
  637. multiple lines at once.  Define the `AL' and `DL' strings in the
  638. termcap entry to say how to do these things, and you will have
  639. fast output without wasted padding characters.  These strings should
  640. each contain a single %-spec saying how to send the number of lines
  641. to be scrolled.  These %-specs are like those in the termcap
  642. `cm' string.
  643.  
  644. You should also define the `IC' and `DC' strings if your terminal
  645. has a command to insert or delete multiple characters.  These
  646. take the number of positions to insert or delete as an argument.
  647.  
  648. A `cs' string to set the scrolling region will reduce the amount
  649. of motion you see on the screen when part of the screen is scrolled.
  650.  
  651. * Your Delete key sends a Backspace to the terminal, using an AIXterm.
  652.  
  653. The solution is to include in your .Xdefaults the lines:
  654.  
  655.    *aixterm.Translations: #override <Key>BackSpace: string(0x7f)
  656.    aixterm*ttyModes: erase ^?
  657.  
  658. This makes your Backspace key send DEL (ASCII 127).
  659.  
  660. * You type Control-H (Backspace) expecting to delete characters.
  661.  
  662. Put `stty dec' in your .login file and your problems will disappear
  663. after a day or two.
  664.  
  665. The choice of Backspace for erasure was based on confusion, caused by
  666. the fact that backspacing causes erasure (later, when you type another
  667. character) on most display terminals.  But it is a mistake.  Deletion
  668. of text is not the same thing as backspacing followed by failure to
  669. overprint.  I do not wish to propagate this confusion by conforming
  670. to it.
  671.  
  672. For this reason, I believe `stty dec' is the right mode to use,
  673. and I have designed Emacs to go with that.  If there were a thousand
  674. other control characters, I would define Control-h to delete as well;
  675. but there are not very many other control characters, and I think
  676. that providing the most mnemonic possible Help character is more
  677. important than adapting to people who don't use `stty dec'.
  678.  
  679. If you are obstinate about confusing buggy overprinting with deletion,
  680. you can redefine Backspace in your .emacs file:
  681.   (global-set-key "\b" 'delete-backward-char)
  682. You may then wish to put the function  help-command  on some
  683. other key.  I leave to you the task of deciding which key.
  684.  
  685. * Editing files through RFS gives spurious "file has changed" warnings.
  686. It is possible that a change in Emacs 18.37 gets around this problem,
  687. but in case not, here is a description of how to fix the RFS bug that
  688. causes it.
  689.  
  690.     There was a serious pair of bugs in the handling of the fsync() system
  691.     call in the RFS server.
  692.  
  693.     The first is that the fsync() call is handled as another name for the
  694.     close() system call (!!).  It appears that fsync() is not used by very
  695.     many programs; Emacs version 18 does an fsync() before closing files
  696.     to make sure that the bits are on the disk.
  697.  
  698.     This is fixed by the enclosed patch to the RFS server.
  699.  
  700.     The second, more serious problem, is that fsync() is treated as a
  701.     non-blocking system call (i.e., it's implemented as a message that
  702.     gets sent to the remote system without waiting for a reply).  Fsync is
  703.     a useful tool for building atomic file transactions.  Implementing it
  704.     as a non-blocking RPC call (when the local call blocks until the sync
  705.     is done) is a bad idea; unfortunately, changing it will break the RFS
  706.     protocol.  No fix was supplied for this problem.
  707.  
  708.     (as always, your line numbers may vary)
  709.  
  710.     % rcsdiff -c -r1.2 serversyscall.c
  711.     RCS file: RCS/serversyscall.c,v
  712.     retrieving revision 1.2
  713.     diff -c -r1.2 serversyscall.c
  714.     *** /tmp/,RCSt1003677   Wed Jan 28 15:15:02 1987
  715.     --- serversyscall.c     Wed Jan 28 15:14:48 1987
  716.     ***************
  717.     *** 163,169 ****
  718.         /*
  719.          * No return sent for close or fsync!
  720.          */
  721.     !       if (syscall == RSYS_close || syscall == RSYS_fsync)
  722.             proc->p_returnval = deallocate_fd(proc, msg->m_args[0]);
  723.         else
  724.         {
  725.     --- 166,172 ----
  726.         /*
  727.          * No return sent for close or fsync!
  728.          */
  729.     !       if (syscall == RSYS_close)
  730.             proc->p_returnval = deallocate_fd(proc, msg->m_args[0]);
  731.         else
  732.         {
  733.  
  734. * Vax C compiler bugs affecting Emacs.
  735.  
  736. You may get one of these problems compiling Emacs:
  737.  
  738.    foo.c line nnn: compiler error: no table entry for op STASG
  739.    foo.c: fatal error in /lib/ccom
  740.  
  741. These are due to bugs in the C compiler; the code is valid C.
  742. Unfortunately, the bugs are unpredictable: the same construct
  743. may compile properly or trigger one of these bugs, depending
  744. on what else is in the source file being compiled.  Even changes
  745. in header files that should not affect the file being compiled
  746. can affect whether the bug happens.  In addition, sometimes files
  747. that compile correctly on one machine get this bug on another machine.
  748.  
  749. As a result, it is hard for me to make sure this bug will not affect
  750. you.  I have attempted to find and alter these constructs, but more
  751. can always appear.  However, I can tell you how to deal with it if it
  752. should happen.  The bug comes from having an indexed reference to an
  753. array of Lisp_Objects, as an argument in a function call:
  754.   Lisp_Object *args;
  755.   ...
  756.    ... foo (5, args[i], ...)...
  757. putting the argument into a temporary variable first, as in
  758.   Lisp_Object *args;
  759.   Lisp_Object tem;
  760.   ...
  761.    tem = args[i];
  762.    ... foo (r, tem, ...)...
  763. causes the problem to go away.
  764. The `contents' field of a Lisp vector is an array of Lisp_Objects,
  765. so you may see the problem happening with indexed references to that.
  766.  
  767. * 68000 C compiler problems
  768.  
  769. Various 68000 compilers have different problems.
  770. These are some that have been observed.
  771.  
  772. ** Using value of assignment expression on union type loses.
  773. This means that  x = y = z;  or  foo (x = z);  does not work
  774. if x is of type Lisp_Object.
  775.  
  776. ** "cannot reclaim" error.
  777.  
  778. This means that an expression is too complicated.  You get the correct
  779. line number in the error message.  The code must be rewritten with
  780. simpler expressions.
  781.  
  782. ** XCONS, XSTRING, etc macros produce incorrect code.
  783.  
  784. If temacs fails to run at all, this may be the cause.
  785. Compile this test program and look at the assembler code:
  786.  
  787. struct foo { char x; unsigned int y : 24; };
  788.  
  789. lose (arg)
  790.      struct foo arg;
  791. {
  792.   test ((int *) arg.y);
  793. }
  794.  
  795. If the code is incorrect, your compiler has this problem.
  796. In the XCONS, etc., macros in lisp.h you must replace (a).u.val with
  797. ((a).u.val + coercedummy) where coercedummy is declared as int.
  798.  
  799. This problem will not happen if the m-...h file for your type
  800. of machine defines NO_UNION_TYPE.  That is the recommended setting now.
  801.  
  802. * C compilers lose on returning unions
  803.  
  804. I hear that some C compilers cannot handle returning a union type.
  805. Most of the functions in GNU Emacs return type Lisp_Object, which is
  806. defined as a union on some rare architectures.
  807.  
  808. This problem will not happen if the m-...h file for your type
  809. of machine defines NO_UNION_TYPE.
  810.  
  811.